$(document).ready(function(){
  var dataString = "partyId=" + $("#partyNameSel").val() + "&addOn=" + 'addOn';
  $.ajax(
  {
    type: "GET",
    url: "enterNewPartyAjax.php",
    data: dataString,
    success:function(data)
    {
      $('.partyData').html(data);
    }
  });
});

var garanter;
function countDays()
{
  var loanAmount        = $("#loanAmount").val();
  var installmentAmount = $("#installmentAmount").val();
  if(installmentAmount != "" && installmentAmount != 0)
  {
    var installmentDays   = loanAmount/installmentAmount;
    $("#installmentDays").val(installmentDays);
  }
}

function interest()
{
  var loanAmount = $("#loanAmount").val();
  var monthlyInterest = $("#monthlyInterest").val();
  var monthlyInterestRs = (loanAmount * monthlyInterest) / 100;
  $("#monthlyInterestRs").val(monthlyInterestRs);
}